<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class PostController extends Controller
{

    /**
     * 注册
     * @param  Request  $request
     * @return Response
     */
    public function SignUp(Request $request){
        $messages = [];
        $customAttributes = [
            'account' => 'required|unique:posts|max:255',
            'password' => 'required',
        ];

        $validator = Validator::make($request, [], $messages, $customAttributes);
        dump($validator);

    }

}
